/**
* LogFcon
* @author Default
* @version 0.1
*/

package ch.sfug.log.output {

	/**
	 * Provides an interface to fcon
	 * fcon.googlecode.com
	 * 
	 * TODO: Still not flexible in hostname, but fast
	 * @author maze | guavestudios.com
	 * @version 0.1
	 * 
	 */
	public class LogFcon implements ILoggerOutput {
		
		//{ STATIC
		private static var hosted:Class;
		//}
		
		//{ MEMBERS
		
		//}
		
		//{ GETTER-SETTER
		
		//}
		
		//{ EVENT DEFINITION
		
		//}
		
		//{ INIT
		public function LogFcon(host:Class) {
			
			hosted = host;
			init();
		}
		private function init():void {
		}
		//}
		
		//{ PUBLIC METHODS
		public function append( txt:String ):void
		{
			//use the normal trace for fcon
			if (hosted) hosted["trace"](txt);
		}

		
		public function clear( ):void
		{
			//do a clear per execute
			if (hosted) hosted["execute"]("clear");
		}
		//}
		
		//{ OVERRIDEN METHODS
		
		//}
		
		//{ PRIVATE METHODS
		
		//}
		
		//{ EVENT HANDLING
		
		//}
		
	}
	
}
